package com.hyfrogx.modules.manage.form.channel;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @version 1.0.0
 * @Author: lfh
 * @Date: 2019/9/24 16:48
 * @Company 汉咏科技
 */
@Data
@ApiModel("渠道新增，修改表单")
public class ChannelForm {

    private Integer id;

    /**
     * 渠道号
     */
    @NotNull(message = "渠道号不能为空")
    @ApiModelProperty(value = "渠道号")
    private Integer channelNum;

    /**
     * 渠道名称
     */
    @NotBlank(message = "渠道名称不能为空")
    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    /**
     * 渠道类型
     */
    @NotNull(message = "渠道类型不能为空")
    @ApiModelProperty(value = "渠道类型")
    private Integer channelType;

    /**
     * 渠道描述
     */
    @NotBlank(message = "渠道描述不能为空")
    @ApiModelProperty(value = "渠道描述")
    private String remark;
}
